<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>系统监控</el-breadcrumb-item>
      <el-breadcrumb-item>系统日志</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card class="el-card-define">
      <el-row :gutter="12">
        <el-col :span="4">
          <el-card class="card-little" shadow="hover">
            Micro_Service_User
            <div class="bottom clearfix">
<!--              <el-button type="text" class="button" @click="goToLogs(1)">跳转</el-button>-->
              <a :href="goToLogs(1)" target="_blank">跳转</a>
            </div>
          </el-card>
        </el-col>
        <el-col :span="4">
          <el-card class="card-little" shadow="hover">
            Micro_Service_Business
            <div class="bottom clearfix">
              <a :href="goToLogs(2)" target="_blank">跳转</a>
            </div>
          </el-card>
        </el-col>

      </el-row>

    </el-card>
  </div>

</template>

<script>
export default {
  name: "Log",
  data() {
    return {
      activeName: 'first'
    }
  },

  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
    goToLogs(type) {
      let url = ''
      if (type == 1) {
        url = '/soap/ms/user/plumelog/#/'
      } else if (type == 2) {
        url = '/soap/ms/business/plumelog/#/'
      }
      console.log(window.location.origin)
      console.log(type)
      return window.location.origin +url

    }
  }
}
</script>

<style scoped>
.el-card-define {
  min-height: 100%;
  height: 100%;
}
.el-card-define >>> .el-card__body {
  height: 100%;
}
.button {
  padding: 0;
  float: right;
}
.card-little {
  background-color: #787676;
}
</style>